﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace He.Framework.AttributeValidate
{
    public class RequiredAttribute: AbstractValidateAttribute
    {
        public override bool Validate(object oValue)
        {
            if(oValue == null || string.IsNullOrWhiteSpace(oValue.ToString()))
            {
                return false;
            }
            else
            {
                return true;
            }
        }

    }
}
